package com.hudson.plugin.web.controller;

import org.springframework.osgi.service.importer.OsgiServiceLifecycleListener;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 6/1/11
 * Time: 12:16 AM
 * To change this template use File | Settings | File Templates.
 */
@Controller
public class DashBoardController implements OsgiServiceLifecycleListener {
    //private static final Logger logger = LoggerFactory.getLogger(DashBoardController.class);

    @RequestMapping("/index.do")
    public void initDashBoard(Model model) {
        String greeding = "hello !";
        model.addAttribute("greeding", greeding);
    }

    public void bind(Object service, Map properties) throws Exception {
        //    logger.info("!!!DashBoardController  Start!!!");
    }

    public void unbind(Object service, Map properties) throws Exception {
        //    logger.info("!!!DashBoardController  End!!!");
    }
}
